import { createRouter, createWebHistory } from 'vue-router';
import Home from '../views/Home.vue';
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
import DeviceManager from '../views/DeviceManager.vue';
import VoiceRecognition from '../views/VoiceRecognition.vue';
import NotificationCenter from '../views/NotificationCenter.vue';
import UserManager from '../views/UserManager.vue';

const routes = [
  { path: '/', name: 'Home', component: Home },
  { path: '/login', name: 'Login', component: Login },
  { path: '/register', name: 'Register', component: Register },
  { path: '/devices', name: 'DeviceManager', component: DeviceManager },
  { path: '/voice', name: 'VoiceRecognition', component: VoiceRecognition },
  { path: '/notifications', name: 'NotificationCenter', component: NotificationCenter },
  { path: '/users', name: 'UserManager', component: UserManager },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router; 